package com.beichuan_travel.enums;

public enum ResultCode {

    SUCCESSED(200,"success"),

    UNAUTHORIZED(403, "未认证"),

    FAILED(1001,"操作失败"),

    VALIDATE_FAILED(1002, "参数校验失败"),

    EMPTY(1003,"查询结果为空"),

    USER_NOT_EXISTS(2,"用户不存在"),

    USER_HAS_EXISTS(3,"用户已经存在"),

    ERROR(5000, "未知错误");


    private int statusCode;
    private String msg;

    ResultCode(int statusCode, String msg) {
        this.statusCode = statusCode;
        this.msg = msg;
    }

    ResultCode() {
    }

    public int getStatusCode() {
        return statusCode;
    }

    public String getMsg() {
        return msg;
    }
}
